﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="InvoiceSettings.aspx.cs"  Inherits="Main_ServiceInvoice_InvoiceSettings" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxControl" %>
<%@ Register Src="~/User Controls/PageHeading.ascx" TagName="heading" TagPrefix="acc" %>
<%--<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
--%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Invoice Settings</title>
    <link href="../../Styles/accounts.css" rel="stylesheet" type="text/css" />

    <script src="../../JavaScript/prototype.js" type="text/javascript"></script>

    <script src="../../JavaScript/myTabz.js" type="text/javascript"></script>

    <script type="text/javascript">
        function isNumberKey(control_id, evt) {
            var charCode = (evt.which) ? evt.which : event.keyCode
            if (charCode > 31 && (charCode < 48 || charCode > 57) && (charCode < 45 || charCode > 47))
                return false;

            if (charCode == 46) {
                var dotcount = document.getElementById(control_id).value.split('.').length - 1;
                if (dotcount >= 1) {
                    return false;
                }
            }
            return true;
        }
        var ActivateTabs = function() {
            if (typeof (MT) == 'undefined') {
                var MyTabs = new mt('tabs', 'div.my_tab');
                MyTabs.addTab('TGenSettings', 'General Settings');
                MyTabs.addTab('TRoundOff', 'Round Off');
                MyTabs.addTab('THeadAccount', 'Head of Account');
                MyTabs.makeActive('TGenSettings');
            }
        }
    </script>

    <style type="text/css">
        div#tabs
        {
            width: 700px;
            margin: 10px auto;
            font-size: 11px;
            border: 1px solid #818181;
        }
        /* DIV that holds each tab*/div.my_tab
        {
            width: 550px;
            margin: 0px auto;
            float: left;
            display: inline;
        }
        /* Title of each tab, used when user don't have Javascript'*/div.my_tab h5
        {
            color: #414141;
            border-bottom: solid 1px #cacaca;
        }
        /* Tab Bar, created via JS*/div#tab-bar
        {
            padding: 10px 0px 10px 0px;
            margin: 0px 10px 10px 0px;
            width: 130px;
            height:230px;
            background: #ffffff;
            border-right: 1px solid #818181;
            margin-bottom: 20px;
            font: normal 12px "Trebuchet MS";
            float: left;
            display: inline;
        }
        /* Single Tab */div#tab-bar div.mt-tab
        {
            width: 110px;
            position: relative;
            text-align: left;
            margin: 4px -1px 0px 0px;
            cursor: pointer;
            border-top: 1px solid #818181;
            border-left: 1px solid #818181;
            border-right: 1px solid #818181;
            border-bottom: 1px solid #818181;
            font: normal 13px "Trebuchet MS";
            float: right;
            display: inline;
            color: #ffffff;
            padding: 5px 5px 5px 10px;
        }
        /* Single Tab, when active */div#tab-bar div.mt-tab-active
        {
            text-align: left;
            margin: 4px -1px 0px 0px;
            cursor: pointer;
            border-top: 1px solid #818181;
            border-left: 1px solid #818181;
            border-right: solid 1px #ffffff;
            border-bottom: 1px solid #818181;
            float: right;
            display: inline;
            color: Black;
            font-weight: bold;
            padding: 5px 5px 5px 10px;
        }
    </style>
</head>
<body onload="ActivateTabs('tabs');">
    <form id="form1" runat="server">
    <AjaxControl:ToolkitScriptManager ID="tsm" runat="server" EnablePartialRendering="true">
    </AjaxControl:ToolkitScriptManager>
    <asp:UpdateProgress ID="updprogress" runat="server" DynamicLayout="false">
        <ProgressTemplate>
            <div align="center">
                <img src="../../Images/ajax-loader.gif" /></div>
        </ProgressTemplate>
    </asp:UpdateProgress>
    <div class="divmain" style="clear: both;">
        <acc:heading ID="pagehead" runat="server" HeadingText="Invoice Setting" />
    </div>
    <div style="width: 80%; margin-left: 10%; margin-right: 10%; text-align:center;">
        <asp:Label ID="lblMsg" runat="server" Font-Bold="true"></asp:Label>
    </div>
    <div id="tabs" style="height:250px">
        <div id="TGenSettings" class="my_tab">
            <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                <ContentTemplate>
                    <div style="margin-top: 10px;">
                        <table style="font-size: 12px; width: 100%" class="tablecontent">
                            <tr>
                                <td colspan="2" class="headtd" style="width: 100%">
                                    Threshold Limit
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <b>Service Tax:</b>
                                </td>
                            </tr>
                            <tr>
                                <td valign="top">
                                    <asp:RadioButtonList ID="rbtServiceTax" runat="server" Enabled="false" RepeatDirection="Vertical">
                                        <asp:ListItem Value="0" Selected="True">Apply Service Tax From Rupee 1</asp:ListItem>
                                        <asp:ListItem Value="1">Apply Service Tax From Threshold Limit<span style="color:Red">*</span></asp:ListItem>
                                    </asp:RadioButtonList>
                                </td>
                                <td valign="bottom">
                                    <asp:TextBox ID="txtServiceTaxThreshold" runat="server" onkeypress="return isNumberKey(this.id,event);" Enabled="false" Text="1.00"
                                        CssClass="inputnumber"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <b>Post Billing for TDS:</b>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Apply Post Billing from Threshold Limit
                                </td>
                                <td>
                                    <asp:TextBox ID="txtPostBilling" runat="server" onkeypress="return isNumberKey(this.id,event);" Text="20000.00" CssClass="inputnumber"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    &nbsp;
                                </td>
                            </tr>
                        </table>
                        <table style="font-size: 12px; margin-top: 10px; margin-bottom: 10px; width: 100%"
                            class="tablecontent">
                            <tr>
                                <td class="headtd">
                                    Generate Service Tax Return
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:CheckBox ID="chkGenerateST3" runat="server" Text="Generate ST3 Returns (Service Tax)" />
                                </td>
                            </tr>
                        </table>
                        Decimal Places &nbsp;&nbsp;
                        <asp:DropDownList ID="ddlDecimalPlaces" runat="server" CssClass="dropdown">
                            <asp:ListItem Text="0" Value="0"></asp:ListItem>
                            <asp:ListItem Text="1" Value="1"></asp:ListItem>
                            <asp:ListItem Text="2" Value="2"></asp:ListItem>
                            <asp:ListItem Text="3" Value="3"></asp:ListItem>
                        </asp:DropDownList>
                    </div>
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
        <div id="TRoundOff" class="my_tab">
            <div style="margin: 10px 0px 10px 0px">
                <table style="font-size: 12px; width: 100%" class="tablecontent">
                    <tr>
                        <td class="headtd" style="width: 50%; border-right: solid 1px #818181">
                            Particulars
                        </td>
                        <td class="headtd">
                            Round Off
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Service Tax
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlRoundST" runat="server" Width="140px" CssClass="dropdown">
                                <asp:ListItem Value="1" Text="Nearest Rupee"></asp:ListItem>
                                <asp:ListItem Value="2" Text="Higher Rupee"></asp:ListItem>
                                <asp:ListItem Value="3" Text="None"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            P.E.Cess
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlRoundPECess" runat="server" Width="140px" CssClass="dropdown">
                                <asp:ListItem Value="1" Text="Nearest Rupee"></asp:ListItem>
                                <asp:ListItem Value="2" Text="Higher Rupee"></asp:ListItem>
                                <asp:ListItem Value="3" Text="None"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            H.E.Cess
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlRoundHECEss" runat="server" Width="140px" CssClass="dropdown">
                                <asp:ListItem Value="1" Text="Nearest Rupee"></asp:ListItem>
                                <asp:ListItem Value="2" Text="Higher Rupee"></asp:ListItem>
                                <asp:ListItem Value="3" Text="None"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Luxury Tax/VAT
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlRoundLuxuryTax" runat="server" Width="140px" CssClass="dropdown">
                                <asp:ListItem Value="1" Text="Nearest Rupee"></asp:ListItem>
                                <asp:ListItem Value="2" Text="Higher Rupee"></asp:ListItem>
                                <asp:ListItem Value="3" Text="None"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Amount Receivable
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlRoundAmtRec" runat="server" Width="140px" CssClass="dropdown">
                                <asp:ListItem Value="1" Text="Nearest Rupee"></asp:ListItem>
                                <asp:ListItem Value="2" Text="Higher Rupee"></asp:ListItem>
                                <asp:ListItem Value="3" Text="None"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div id="THeadAccount" class="my_tab">
            <div style="margin: 10px 0px 10px 0px">
                <table style="font-size: 12px; width: 100%" class="tablecontent">
                    <tr>
                        <td class="headtd" colspan="2">
                            Default Head of Accounts
                        </td>
                    </tr>
                    <tr>
                        <td>
                            TDS Accounts
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlTDSAccounts" runat="server" Width="140px" CssClass="dropdown">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Write Off Accounts
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlWriteOffAccount" runat="server" Width="140px" CssClass="dropdown">
                            </asp:DropDownList>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    <div style="width: 720px; font-size: 12px;  margin-top:15px; margin-left:45px; ">
        <%--<asp:UpdatePanel ID="UpdatePanel4" runat="server">
            <ContentTemplate>--%>
              <div align="right" style="margin-left:45px;">
                <asp:Button ID="btnSave" runat="server" CssClass="button" Text="Save" onclick="btnSave_Click" />&nbsp;
                <asp:Button ID="btnClose" runat="server" CssClass="button" Text="Close" onclick="btnClose_Click" />
                </div>
          <%--  </ContentTemplate>
        </asp:UpdatePanel>--%>
    </div>
    </form>
</body>
</html>
